import { BaseEntity } from '@cool-midway/core';
import { Column, Entity, Index } from 'typeorm';

/**
 * anchorLive模块-直播信息
 */
@Entity('anchor_live_info')
export class AnchorLiveInfoEntity extends BaseEntity {
  @Index()

  @Column({ comment: '主播ID', length: 100 })
  anchorId: string;

  @Column({ comment: '主播昵称', length: 100 })
  anchorName: string;

  @Column({ comment: '主播名称', length: 100 })
  name:string;

  @Column({ comment: '开始时间', type: 'datetime' })
  time: Date;

  @Column({ comment: '直播时长', type: 'int' })
  duration: number;

  @Column({ comment: '音浪', type: 'int' })
  soundWaves: number;

  @Column({ comment: '礼物数', type: 'int' })
  gifts: number;
}
